/*****************************************************************//**
 * \file   AnsysAPDLReaderBase.cpp
 * \brief  AnsysAPDLReaderBase
 *
 * \author Wyatt
 * \date   May 2023
 *********************************************************************/
#include "AnsysAPDLReaderBase.h"
#include "AnsysDataDef.h"


ReaderBase::ReaderBase(CDBReader* pCDBReader)
	: _pCDBReader(pCDBReader)
{}

ReaderBase::~ReaderBase(void)
{
	if (_pCDBReader)
	{
	//delete _pCDBReader;
	_pCDBReader = nullptr;
	}
}

ANSYS_KEYWORD ReaderBase::GetKeyWord()
{
	return KEY_UNKNOWN;
}

CDBReader* ReaderBase::GetCDBReader() {
	return _pCDBReader;
}

std::string ReaderBase::GetReaderName() {
	return "UNKNOWN";
}

void ReaderBase::destroy_instance()
{
}

void ReaderBase::update_instance()
{
}

bool ReaderBase::Scan(std::string& strDataLine)
{
	return true;
}

bool ReaderBase::Read(std::string& strDataLine)
{
	return true;
}

bool ReaderBase::clear_map()
{
	return true;
}